package com.mccrea.pattern.template;

/**
 * @Classname SupperCalssTemplate
 * @Description 模板方法模式父类
 * @Date 2021/5/17 0017 17:37
 * @Created by Mccrea_Gao
 */
public abstract class SupperCalssTemplate {

    /**
     * 模板方法
     */
    public final void template() {
        method1();
        method2();
        method3();
        method4();
    }

    abstract void method1();
    abstract void method2();
    abstract void method3();
    abstract void method4();

}
